<extend name="./base" />
<block name="pageContent">
    <link rel="stylesheet" href="{$Think.config.DOMAIN_URL}/Public/AdminTpl/css/s-settle.css">
    <div class="main-content">
        <!-- 头部面包屑导航条 -->
        <div class="breadcrumbs" id="breadcrumbs">
            <!--导航路径列表-->
            <ul class="breadcrumb no-margin-left">
                <li>
                    <a>管理后台</a>
                </li>
                <li class="action">
                    用户管理
                </li>
            </ul>
        </div>
        <!--页面容器-->
        <div class="page-content">
            <div class="nav-tab" style="position: relative">
                <ul class="nav-tab-title ">
                    <li class="nav-this">关系修改记录</li>
                </ul>
            </div>
            <div class="row">
                <div class="col-xs-12">
                    <form class="form-horizontal s_input-bgcolor" method="post" action="{$Think.config.DOMAIN_URL}/user/nexusChangeList">
                        <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 pad-b20">
                            <div class="form-group">
                                <label class="col-sm-3 control-label text-right no-padding-right" for="form-field-1-1">用户名： </label>

                                <div class="col-sm-8">
                                    <input type="text" id="form-field-1-1" name="username" value="{$postArr.username}" placeholder="请输入用户名" class="form-control">
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 pad-b20">
                            <div class="form-group">
                                <label class="col-sm-3 control-label text-right no-padding-right" for="form-field-1-1">真实姓名： </label>

                                <div class="col-sm-8">
                                    <input type="text" id="form-field-1-2" name="truename" value="{$postArr.truename}" placeholder="请输入真实姓名" class="form-control">
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 pad-b20">
                            <div class="form-group">
                                <label class="col-sm-3 control-label text-right no-padding-right">修改时间： </label>

                                <div class="col-sm-8">
                                    <div class="input-daterange input-group">
                                        <input type="text" class="input-sm form-control" placeholder="开始时间" name="start" id="start" value="{$postArr.start}">
                                                            <span class="input-group-addon" style="background: none;border: none;">
                                                                -
                                                            </span>

                                        <input type="text" class="input-sm form-control" placeholder="结束时间" name="end" id="end" value="{$postArr.end}">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="col-lg-3 col-md-6 col-sm-12 col-xs-12 pad-b20 text-right">
                            <button type="submit" class="btn " style="width: 120px;    border-radius: 2rem; background: #fba40a!important;border-color: #fba40a;margin-left: 20px;">查询</button>
                        </div>
                    </form>
                    <div class="space"></div>
                    <div class="row">
                        <div class="col-xs-12">
                            <table id="sample-table-1"
                                   class="table table-hover">
                                <thead>
                                <tr>
                                    <th class="center">用户名</th>
                                    <th class="center">原推荐人</th>
                                    <th class="center">新推荐人</th>
                                    <th class="center">负责修改人</th>
                                    <th class="center">备注</th>
                                    <th class="center">修改之前业绩</th>
                                    <th class="center">修改时间</th>
                                </tr>
                                </thead>
                                <tbody>

                                <empty name="resList">
                                    <tr class="s_tr-vertical">
                                        <td colspan="7" class="center" style="color: red;">没有查询到结果</td>
                                    </tr>
                                </empty>
                                <volist  name="resList" id="vo">
                                    <tr class="s_tr-vertical">
                                        <td class="center">{$uRes[$vo[customerid]][tel]}（{$uRes[$vo[customerid]][name]}）</td>
                                        <td class="center">{$uRes[$vo[oldrecommandid]][tel]|default="admin"}（{$uRes[$vo[oldrecommandid]][name]|default="admin"}）</td>
                                        <td class="center">{$uRes[$vo[newrecommandid]][tel]}（{$uRes[$vo[newrecommandid]][name]}）</td>
                                        <td class="center">{$auRes[$vo[updatecustomerid]][tel]|default="admin"}（{$auRes[$vo[updatecustomerid]][name]|default="admin"}）</td>
                                        <td class="center">{$vo.remark}</td>
                                        <td class="center">{$vo.treasure|default="0"}</td>
                                        <td class="center">{$vo.checkedon}</td>
                                    </tr>
                                </volist>
                                </tbody>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
            <div class="text-center">
                {$pageShow}
            </div>
        </div>
    </div>

    <script>
        laydate.render({
            elem: '#start' //指定元素
        });
        laydate.render({
            elem: '#end' //指定元素
        });
    </script>
</block>